<template>
    <div>
        <p v-for="(goods,index) in goodslist" :key="index">
            {{goods.name}}---{{goods.price}}---<img :src="'http://127.0.0.1:8000/'+goods.pic">---{{goods.cate}}
        </p>
    </div>
</template>

<script>
export default {
    name:'goodss1',
    data(){
        return{
            goodslist:{},
            id:this.$route.query.id,
        }
    },
    created(){
        this.axios.get('/goods/?id='+this.id).then(resp=>{
            console.log(resp.data)
            this.goodslist=resp.data
        })
    }
}
</script>

<style>

</style>